﻿using System;
using Joy.Erp.BasicArchives.Core;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    /// <summary>
    /// 辅计量表
    /// </summary>
    public class AuxiliaryUnit : ArchiveChildAggregateRoot, IChild
    {
        /// <summary>
        /// 计量单位组
        /// </summary>
        public UnitGroup MainArchive { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public Guid UnitId { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public Unit Unit { get; set; }

        /// <summary>
        /// 主转辅倍率
        /// </summary>
        public int MainToAuxiliaryRatio { get; set; }

        /// <summary>
        /// 辅转主倍率
        /// </summary>
        public int AuxiliaryToMainRatio { get; set; }
    }
}
